package inseniarlingua.lang.en;

import java.util.HashMap;

import inseniarlingua.lang.Noun;
import inseniarlingua.lang.NounFactory;

public class NounENFactory extends NounFactory
{
	public NounENFactory() {
		super();
		irregularNounMap = new HashMap<String, Noun>();
		irregularNounMap.put("foot", new NounEN("foot", "feet"));
		irregularNounMap.put("life", new NounEN("life", "lives"));
		irregularNounMap.put("man", new NounEN("man", "men"));
		irregularNounMap.put("woman", new NounEN("woman", "women"));
	}

	public Noun getNoun(String noun) {
		Noun ret = irregularNounMap.get(noun);
		if (ret == null) {
			ret = new NounEN(noun);
		}
		return ret;
	}
}
